package me.landery.modules.sinco.repository;

import me.landery.modules.sinco.domain.Mode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Set;

public interface ModeRepository extends JpaRepository<Mode, Long>, JpaSpecificationExecutor<Mode> {
    /**
     * 根据 PID 查询
     * @param id pid
     * @return /
     */
    Mode findByName(String name);

    /**
     * 根据Id删除
     * @param ids /
     */
    void deleteAllByIdIn(Set<Long> ids);


}